#ifndef CONFIG_H
#define CONFIG_H

#include <string>

//Some UDP or TCP port
const int cmdPort = 50000;	//node listen on this tcp port
const int fromMagagePlat = 50001;	//gateway listen on this port recv data
const int networkMPort = 50002;	//udp port, transmit network switch msg
const int netDeviceListenPort = 50003;	//433M device listen from this port for connect from 433M server or 433M client
const int netMSCommandRPort = 50004;	//for local use
const int FTTMServerPort = 50005;	//433M server listen for connect from gateway
const int fromManagePlatM = 50006;	//gateway listen on this port recv ctl msg
const int networkMPortTCP = 50007; //tcp port, transmit network switch msg

const char CFLAG = 'C';
const char DFLAG = 'D';

//plat switch cmd
const char changeTo433 = '\x00';
const char changeToWiFi = '\x01';
const char getNetStatus = '\x02';

//respond to plat
const char statusWifi = '\x00';
const char status433 = '\x01';

//netM cmd
const char turnOn433 = '\x03';
const char turnOnWiFi = '\x04';
const char turnOn433Success = '\x05';
const char turnOnWiFiSuccess = '\x06';
const char turnOff433 = '\x07';
const char turnOffWiFi = '\x08';
const char turnOff433Success = '\x09';
const char turnOffWiFiSuccess = '\x0a';
const char ack = '\x0b';
const char ackEnd = '\x0c';

const std::string wirelessInterface = "rausb0";

#endif //CONFIG_H
